package com.xnyzc.lhy.finance.mapper.wallet;

import com.xnyzc.lhy.finance.entity.wallet.OaDWallet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.*;

/**
 * <p>
 * 司机钱包表 Mapper 接口
 * </p>
 *
 * @author cuixiaojian
 * @since 2019-10-16
 */
public interface OaDWalletMapper extends BaseMapper<OaDWallet> {

    /**
     * 查询司机姓名和身份证号
     * @param driverId 司机ID
     * @return Map
     */
    Map<String, String> queryNameAndIDEntity(@Param("driverId") Long driverId);

    /**
     * 查询钱包信息
     * @param driverId 司机ID
     */
    OaDWallet queryDriverWalletInfo(@Param("driverId") Long driverId, @Param("count") Integer count);

}
